package com.miyu.common.pojo.cos;

import lombok.Data;
import org.springframework.data.annotation.CreatedDate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 因为登录日志
 * 用户登录日志表
 * 同步 redis 非启用redis时 不做同步
 * accountType 1 账户 2 邮箱 3 手机 默认1
 *
 * @author longmy
 * @date 2022/02/25
 */
@Data
@Entity
@Table(name = "cos_login_log")
public class CosLoginLog implements Serializable {
    /** 日志id */
    @Id
    @Column(name = "log_id", nullable = false, length = 32)
    private String logId;
    /** 登录账户 */
    @Column(name = "log_account", nullable = false, length = 50)
    private String logAccount;
    /** 日志日期 */
    @Column(name = "log_date")
    private Date logDate;
    /** 日志ip */
    @Column(name = "log_ip", nullable = true, length = 20)
    private String logIp;
    /** 帐户类型 */
    @Column(name = "account_type", nullable = true, length = 1)
    private String accountType="1";
}
